package com.base.service.impl;

import java.util.List;

import com.base.po.voip.ChangeRecord;
import com.base.po.voip.ChangeRecordExample;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.base.mapper.voipmapper.ChangeRecordMapper;
import com.base.service.ChangeRecordService;
import com.base.utils.Page;

@Service("changeRecordService")
public class ChangeRecordServiceImpl implements ChangeRecordService {
	@Autowired
	private ChangeRecordMapper changeRecordMapper;

	@Override
	public int countByExample(ChangeRecordExample example) {

		return changeRecordMapper.countByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(Integer id) {

		return changeRecordMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(ChangeRecord record) {

		return changeRecordMapper.insert(record);
	}

	@Override
	public int insertSelective(ChangeRecord record) {

		return changeRecordMapper.insertSelective(record);
	}

	@Override
	public List<ChangeRecord> selectByExample(ChangeRecordExample example) {

		return changeRecordMapper.selectByExample(example);
	}

	@Override
	public ChangeRecord selectByPrimaryKey(Integer id) {

		return changeRecordMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(ChangeRecord record, ChangeRecordExample example) {

		return changeRecordMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(ChangeRecord record, ChangeRecordExample example) {

		return changeRecordMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(ChangeRecord record) {

		return changeRecordMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(ChangeRecord record) {

		return changeRecordMapper.updateByPrimaryKey(record);
	}

	@Override
	public int deleteByExample(ChangeRecordExample example) {

		return changeRecordMapper.deleteByExample(example);
	}

	@Override
	public List<ChangeRecord> selectByAll(Page page, String mobile, String parentid, String shopid, String dateFrom,
			String dateTo) {

		return changeRecordMapper.selectByAll(page, mobile, parentid, shopid, dateFrom, dateTo);
	}

	@Override
	public List<ChangeRecord> selectByShopMoney(Page page, String userid) {
		return changeRecordMapper.selectByShopMoney(page, userid);
	}

	@Override
	public List<ChangeRecord> selectByMoney(Page page, String userId, Integer typeB) {
		return changeRecordMapper.selectByMoney(page, userId, typeB);
	}

	@Override
	public int countByAll(String mobile, String parentid, String shopid, String dateFrom, String dateTo) {

		return changeRecordMapper.countByAll(mobile, parentid, shopid, dateFrom, dateTo);
	}

	@Override
	public int countByShopMoney(String userid) {
		return changeRecordMapper.countByShopMoney(userid);
	}

	@Override
	public int countByMoney(String userId, Integer typeB) {
		return changeRecordMapper.countByMoney(userId, typeB);
	}
}
